package com.wanho.qz103.hrsaas.sys.service;

import com.wanho.qz103.hrsaas.commons.exception.ServiceException;
import com.wanho.qz103.hrsaas.sys.pojos.Employee;
import com.wanho.qz103.hrsaas.sys.pojos.Job;

public interface EmployeeService {
    /**
     * 根据 id 查询员工详情
     * @param userId
     * @return
     * @throws ServiceException
     */
    Employee getPersonalInfo(String userId) throws ServiceException ;

    /**
     * 根据 用户id 查询角色详情
     * @param userId
     * @return
     * @throws ServiceException
     */
    Job getJobByUserId(String userId) throws ServiceException ;

    boolean modify(Employee employee) throws ServiceException;
}
